22.3 Grand partition function